#pragma once
#include "Primitive.h"

class CSphere : public CPrimitive
{

private:
	float		m_Radius;

public:

	float		GetRadius() { return m_Radius; };
	void		SetRadius(float _rad) { m_Radius = _rad; };
	int			Intersect(CRay&, IsectData&);

	// Constructors & destructor
	CSphere(CVector _orig, float _rad): m_Radius(_rad) { m_Origin = new CVector(_orig); m_IsMesh = false; };
	CSphere(CVector _orig, float _rad, CLightIntensity _col): m_Radius(_rad) { m_Origin = new CVector(_orig); m_Color = new CLightIntensity(_col); m_IsMesh = false; }
	~CSphere(void);
};

